//
// Created by Administrator on 2025/9/18.
//

#ifndef C___LEARN_STUDENT_H
#define C___LEARN_STUDENT_H

#include<iostream>
#include <utility>

namespace DpSingle {
    class Student {
    public:
        //  cocos渲染树的模拟
        //  每生成一个节点，自动挂到静态表头上去。
        Student(std::string n):name(std::move(n)){
            if(head == NULL){
                head = this;
                this->next = NULL;
            }else{
                this->next = head;
                head = this;
            }
        }

        static void printStudentList();

        static void deleteStudentList();

    private:
        std::string name;
        Student *next;
        static Student *head;
    };
}

#endif //C___LEARN_STUDENT_H